import { PLATFORM_Map } from "@/constant/index";

const { VITE_HIDE_HOME } = import.meta.env;
import home from "@/assets/images/leftminsvg/home.svg?component";
export default {
    path: "/",
    name: "Home",
    redirect: "/welcome",
    meta: {
        icon: home,
        title: "首页",
        rank: 0,
        platform: [PLATFORM_Map.data, PLATFORM_Map.monitor],
    },
    children: [
        {
            path: "/welcome",
            name: "Welcome",
            component: () => import("@/views/large-data-screen/large-data-screen.vue"),
            meta: {
                title: "数据大屏",
                showLink: VITE_HIDE_HOME === "true" ? false : true,
                platform: [PLATFORM_Map.data]
            }
        }, {
            path: "/welcome",
            name: "Welcome",
            component: () => import("@/views/large-data-screen/large-data-screen.vue"),
            meta: {
                title: "监管大屏",
                showLink: VITE_HIDE_HOME === "true" ? false : true,
                platform: [PLATFORM_Map.monitor]
            }
        }
    ]
} satisfies RouteConfigsTable;
